package com.better.backend.dataComputingService.model.scoreSelection;

import com.better.common.mongo.model.BaseModel;
import com.better.consist.GlobalTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;

import java.io.Serializable;

/**
 * 设置具体的分数段
 *  @author  tangping
 */
@Data
@Slf4j
@NoArgsConstructor
@ApiModel("分数段明细管理")
public class ScoreSelectionDetail extends BaseModel implements Serializable{
    /**
     * 开始分数
     */
    @ApiModelProperty(value = "开始分数")
    private Double startScore;
    /**
     * 结束分数
     */
    @ApiModelProperty(value = "结束分数")
    private Double endScore;
    /**
     * 具体的分数段名称
     */
    @ApiModelProperty(value = "具体的分数段名称" ,hidden = true)
    private Integer selectValue;

    @ApiModelProperty(value = "具体的分数段名称")
    private String selectName;
    /**
     * 科目id
     */
    @ApiModelProperty(value = "科目id")
    private String subjectId;
    /**
     *  总分、单科目
     */
    @ApiModelProperty(value = "总分、单科目",hidden = true)
    private Integer type = GlobalTypeEnum.ALL.getCode();

    //踩线生
    /**
     * 标准分数
     */
    @ApiModelProperty(value = "标准分数")
    private Double standardScore;
    /**
     * 浮动分数
     */
    @ApiModelProperty(value = "向下浮动分数")
    private Double downScore;
    @ApiModelProperty(value = "向上浮动分数")
    private Double upScore;
    /**
     * 踩线生名称
     */
    @ApiModelProperty(value = "踩线生value" ,hidden = true)
    private Integer footScoreValue;
    @ApiModelProperty(value = "踩线生名称"  ,hidden = true)
    private String footScoreName;
    @ApiModelProperty(value = "是否选中")
    private boolean check =true;

    public boolean isCheck() {
        return check;
    }

    public void setCheck(boolean check) {
        this.check = check;
    }
}
